package uk.ac.cam.djjb2.mygame;

import java.io.DataInput;
import java.io.IOException;

public class ClientTestReplica extends ClientReplicaBase {

	private int value1;
	private int value2;
	
	public ClientTestReplica(ClientReplicaManager replicaManager, int id, DataInput message) throws IOException {
		super(replicaManager, id, message);
		
		value1 = message.readInt();
		value2 = 0;
	}
	
	@Override
	public void update(DataInput message) throws IOException,
			InvalidMessageException {
		value2 = message.readInt();
	}

	@Override
	public void destroy(DataInput message) throws IOException,
			InvalidMessageException {
	}

}
